package net.oschina.allchat.server.framework.pipe.routing;

import net.oschina.allchat.message.processing.translators.im.MessageTranslatorFactory;
import net.oschina.allchat.message.processing.translators.im.PresenceTranslatorFactory;
import net.oschina.allchat.protocol.im.stanza.Message;
import net.oschina.allchat.protocol.im.stanza.Presence;
import net.oschina.allchat.server.framework.core.annotations.Component;

@Component("default.routing.processor")
public class DefaultRoutingProcessor extends MinimumRoutingProcessor {
	@Override
	protected void registerPredefinedTranslators() {
		super.registerPredefinedTranslators();
		
		translatingFactory.register(Presence.class, new PresenceTranslatorFactory());
		translatingFactory.register(Message.class, new MessageTranslatorFactory());
	}
}
